package Buildings.office;
import Interfaces.*;
public class OfficeFactory implements BuildingFactory {
    @Override
    public Space createSpace(double area){
        return new Office(area);
    }
    @Override
    public Space createSpace(int rooms,double area){
        return new Office(area,rooms);
    }
    @Override
    public Floor createFloor(int spaces){
        return new OfficeFloor(spaces);
    }
    @Override
    public Floor createFloor(Space ... spaces){
        return new OfficeFloor(spaces);
    }
    @Override
    public Building createBuilding(int floorsCount,int ... spaces){
        return new OfficeBuilding(floorsCount,spaces);
    }
    @Override
    public Building createBuilding(Floor ... floors){
        return new OfficeBuilding(floors);    
    }
}
